package com.smartEdu.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.dao.CourseCommentDao;
import com.smartEdu.mapper.CommentsMapper;
import com.smartEdu.mapper.CourseCommentMapper;
import com.smartEdu.model.CourseCommentModel;

@Repository(value="courseCommentDaoImpl")
public class CourseCommentDaoImpl extends BaseDaoImpl implements CourseCommentDao{

	@Autowired(required=false)
	@Qualifier("courseCommentMapper")
	private CourseCommentMapper courseCommentMapper;
	
	@Override
	public List<CourseCommentModel> getCourseCommentByPk(String pk) {
		// TODO Auto-generated method stub
		return courseCommentMapper.getCourseCommentByPK(pk);
	}

	@Override
	public void addCourseComment(CourseCommentModel model) {
		// TODO Auto-generated method stub
		courseCommentMapper.addCourseComment(model);
		
	}

}
